<?php

/*
 * action : ModifyImage
 * param: uid、skey
 * 
 */

include_once("httpclient.php");
include_once('config.php');
$url_prefix = Config::$url_prefix;

$action = "ModifyImage";

$param = array();
$param['suffix'] = 'jpg';
$query = array();
$query['action'] = $action;
$query['ver'] = Config::$ver;
$query['uid'] = 999;
$query['skey'] = "fffffffffff";
$query['param'] = json_encode($param);
$url = $url_prefix . http_build_query($query);
$client = new HttpClient();
$datastr=file_get_contents("gb.jpg");
echo $client->GetWithPost($url,$datastr);

?>
